﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

protected:
    void mouseReleaseEvent(QMouseEvent *event);
private slots:
    void on_btn_open_clicked();

    void on_btn_clear_clicked();

private:
    Ui::MainWindow *ui;

    QTimer *timer1s;

    int lineCount = 0;
    int cursorPos = 0;
};
#endif // MAINWINDOW_H
